#include <iostream>
#include <cstdlib>
#include <pthread.h>
#include "tool.h"
#include "DeviceFsk.h"
#include "DeviceFskManager.h"
#include "DeviceZigbee.h"
#include "DeviceZigbeeManager.h"

using namespace std;
 
#define NUM_THREADS     5
 
void *PrintHello(void *threadid)
{  
   // 对传入的参数进�?�强制类型转�?，由无类型指针变为整形数指针，然后再读取
   int tid = *((int*)threadid);
   cout << "Hello Runoob! 线程 ID, " << tid << endl;
   pthread_exit(NULL);
}
 
int main ()
{
    string a1 = "37690348";
    string a2 = "0000FF01423164100003282298390000000095399E67C4359623B8080000052110009A20100821161307270000000000000000092100020006000010000006F000230069370304";

    DeviceZigbee devFska = DeviceZigbee(a1,a2,1);
    
    string de = DeviceFskManager::socketControl(1,"0102");
    string silencecm = DeviceFskManager::remoteSilence();

 Device_zigbee_control devzig = DeviceZigbeeManager::getCommandSocketCtrl(1234,1,1);
        cout << 2 << endl; 
}
